/*
 ============================================================================
 Name        :	w_unit.h
 Author      :	NAYED (nizar.ayed@fullcommedia.com)
 Version     :	0.1
 Copyright   :	Code delivered as is with no liability. No commercial use
				is allowed without written authorization from the Author.
 Description :
	Unit tests for w functions, mainly the parser.
 ============================================================================
*/

#ifndef W_UNIT_H_
#define W_UNIT_H_

#define _IS_OK(a) ((a)?"OK":"Not OK")

/* Verbose Mode */
bool verbose;

/* The test framework */
bool assert_bool(bool, bool);
bool assert_int(int, int);
bool assert_long(long, long);
bool assert_float(float, float);
bool assert_string(char*, char*);
bool assert(int, char*, bool);

/* w_parser.c tests */
char* test_id(int);
void test_array();
void test_read_char(char *, char, bool);
bool test_read_word(FILE *);

#endif	/* W_UNIT_H_ */